var mongoose = require('mongoose')
mongoose.connect('mongodb://localhost/jiugu')
var Schema = mongoose.Schema
var inviteCodeSchema = new Schema({
	createDate: {
		type: Date,
		required: true
	},
	userName: {
		type: String,
		required: true
	},
	invitecode: {
		type: Number,
		required: true
	}
})
module.exports = mongoose.model('inviteCode', inviteCodeSchema)